package com.duobaoyu.dby.supply.api.remote.feign;

import com.duobaoyu.dby.common.core.constant.SecurityConstants;
import com.duobaoyu.dby.common.core.util.R;
import com.duobaoyu.dby.supply.common.biz.remote.dto.order.OrderDeliveryDTO;
import com.duobaoyu.dby.supply.common.biz.remote.to.order.DeliveryTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * 物流信息
 *
 * @author fengshaoyu
 * @version 1.0.0
 * @date 2022/6/15 9:57
 */
@FeignClient(contextId = "remoteSupplyChainBizLogisticsService", value = "dby-supply-chain-biz-api")
public interface RemoteSupplyChainBizLogisticsService{

	@ApiOperation("获取订单配送信息")
	@PostMapping("/api/logistics/order")
	R<List<DeliveryTO>> getOrderDelivery(@RequestBody OrderDeliveryDTO orderDelivery, @RequestHeader(SecurityConstants.FROM) String from);
}
